< previous page page_590 next page >

Page 590
In addition, any statements that Load or Show a form must be changed to a NavigateTo statement, so that you are now calling the other ActiveX documents. Also, if different forms are passing parameters, you must use properties as discussed earlier.
Using the ActiveX Document Migration Wizard
To run the ActiveX Document Migration Wizard, it must be available in the Visual Basic Add-Ins menu. After you have access to the Wizard, you can run it by choosing the ActiveX Document Migration Wizard item from the Add-Ins menu.
To begin converting the forms of a project into ActiveX documents, you must first open the project whose forms you want to convert. The wizard will only work correctly from within the project. To see how this works, open the Address Book project and then start the ActiveX Document Migration Wizard, which displays the introductory dialog box telling you a little of what the wizard can and cannot do for you. Click Next to continue.
The second dialog box, shown in Figure 21.7, enables you to select the forms from the current project that you want to convert to ActiveX documents. All the forms of the current project are shown in the Forms list. You can select any form by clicking the check box next to its name. Because this is a going to be a Web application, there is no compelling reason to have a Splash dialog box, so select all of the forms except for the Splash form and click Next to continue the process.
12181-0590a.gif
Figure 21.7.
Selecting your forms from the project list.
The next dialog box is the Options page shown in Figure 21.8, which enables you to control how the wizard will process the forms you have selected. The three options are:
Choose to comment out invalid code. This option will comment out statements such as Load, Unload, or End that are not supported by ActiveX documents.

 
< previous page page_590 next page >

If you like this book, buy it!